package com.zbkj.crmeb.store.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 渠道采购单表
 * </p>
 *
 * @author Mr.Zhang
 * @since 2020-05-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_purchase_order")
@ApiModel(value="PurchaseOrder", description="渠道采购单表")
public class PurchaseOrder implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "采购单ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "支付订单ID(是order_id)")
    private String  storeOrderId;

    @ApiModelProperty(value = "渠道订单编号")
    private String channelOrderSn;

    @ApiModelProperty(value = "渠道订单ID")
    private String channelOrderId;

    @ApiModelProperty(value = "渠道类型 1:buyer 2 欧洲")
    private Integer channelType;

    @ApiModelProperty(value = "渠道订单状态：1待付款，2待发货，3待收货，4已收货，5售后，6已取消")
    private Integer orderType;

    @ApiModelProperty(value = "渠道发货状态：0未发货，1已发货，2确认售后，11部分发货")
    private Integer shippingStatus;

    @ApiModelProperty(value = "订单付款状态：0未付款，2已付款")
    private Integer payStatus;

    @ApiModelProperty(value = "收货人姓名")
    private String consignee;

    @ApiModelProperty(value = "收货人电话")
    private String mobile;

    @ApiModelProperty(value = "国家地区")
    private String region;

    @ApiModelProperty(value = "收货人所在省")
    private String province;
    @ApiModelProperty(value = "收货人所在市")
    private String city;
    @ApiModelProperty(value = "收货人所在区")
    private String district;
    @ApiModelProperty(value = "收货人详细地址")
    private String address;

    @ApiModelProperty(value = "快递单上面显示的发货人姓名")
    private String shipperName;
    @ApiModelProperty(value = "快递单上面显示的发货人电话")
    private String shipperMobile;

    @ApiModelProperty(value = "1是快递，2是自提")
    private Integer shippingType;

    @ApiModelProperty(value = "店铺编号：1016")
    private String shopId;

    @ApiModelProperty(value = "店铺在渠道绑定的会员ID")
    private String userId;

    @ApiModelProperty(value = "订单商品金额")
    private BigDecimal goodsAmount;

    @ApiModelProperty(value = "运税费")
    private BigDecimal shippingFee;

    @ApiModelProperty(value = "订单总金额")
    private BigDecimal totalFee;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "渠道创建时间")
    private Date addTime;
    @ApiModelProperty(value = "付款时间")
    private Date payTime;
    @ApiModelProperty(value = "确认时间")
    private Date confirmTime;

    @ApiModelProperty(value = "是否成功下单 (1是 2否)")
    private Integer status;

    @ApiModelProperty(value = "备注:下单失败原因")
    private String remark;
}
